import { formatDate } from '@/utils';
import type { TableInstanceColumns } from '@/components/BhTable'
const columns = [
  {
    title: '编码',
    dataIndex: 'id',
    slotName: 'id',
    width: 68,
    align: 'left',
    fixed: 'left',
  },
  {
    title: '头像',
    dataIndex: 'avatar',
    slotName: 'avatar',
    minWidth: 100,
  },
  {
    title: '用户账号',
    dataIndex: 'username',
    slotName: 'username',
    minWidth: 120,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '用户姓名',
    dataIndex: 'realname',
    slotName: 'realname',
    minWidth: 120,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '角色',
    dataIndex: 'roles',
    minWidth: 88,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    minWidth: 88,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    align: 'center',
    width: 120,
  },
  {
    title: '创建时间',
    dataIndex: 'create_time',
    width: 180,
    align: 'center',
  },
  {
    title: '更新时间',
    dataIndex: 'update_time',
    width: 180,
    align: 'center',
  },
  {
    title: '操作',
    slotName: 'handle',
    width: 350,
    align: 'center',
    fixed: 'right',
  },
] as TableInstanceColumns[];

export default columns;
